package com.yindian.cos.easy.security.handler;

import com.yindian.cos.easy.security.authentication.login.UserDetail;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 登录成功处理器，登录成功后会自动获取UserDetail然后调用该接口，业务逻辑需要用户自己处理
 *
 * @author zhangchuanhao
 * @create 2018/11/18
 */
public interface LoginSuccessHandler {
    void handler(HttpServletRequest request, HttpServletResponse response, UserDetail userDetail) throws IOException;
}
